package com.weilai.service;

import com.github.pagehelper.PageInfo;
import com.weilai.domain.*;
import org.springframework.stereotype.Service;

import java.util.List;


public interface AdminService {
    public List<Categories> selectAllCategory();

    public void manageCategory(Categories category);

    public Categories selectCategoryById(int id);

    public void insertCategory(Categories category);

    public void deleteCategoryById(int id);

    public List<Posts> selectPostsUnderChecking();

    public void approvePost(int id);

    public void muteUser(int id);

    public void unMuteUser(int id);

    public List<Comments> commentsUnderChecking();

    public void rejectComment(int id);

    public void approveComment(int id);

    public Comments selectCommentById(int id);

    public User fuzzyQueryUser(String keyWord);

    public PageInfo<User> getUsersFromManagerWithPaging(int pageNum, int pageSize) ;

    public PageInfo<Posts> getPostsFromManagerWithPaging(int pageNum, int pageSize) ;

    public PageInfo<Categories> getCategoriesFromManagerWithPaging(int pageNum, int pageSize) ;

    public PageInfo<ReportInfo> getReportInfoFromManagerWithPaging(int pageNum, int pageSize) ;
}
